<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>会员详情页</title>
    <link rel="stylesheet" href="assets/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="assets/css/bootstrap-maizi.css"/>
</head>
<body>
<jsp:include page="header.jsp"/>

<div class="container">
    <div class="row">
        <div class="col-md-2">
            <div class="list-group">
                <a href="${pageContext.request.contextPath }/adminMember" class="list-group-item active">会员列表</a>
                <a href="${pageContext.request.contextPath }/adminMember?method=doSearch"
                   class="list-group-item">查询会员</a>
            </div>
        </div>
        <div class="col-md-10">
            <div class="page-header">
                <h1>会员管理</h1>
            </div>
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>会员属性</th>
                    <th>会员信息</th>
                </tr>
                </thead>
                <tbody>
                <tr class="hidden">
                    <td>会员ID</td>
                    <td>${member.id}</td>
                </tr>
                <tr>
                    <td>会员账号</td>
                    <td>${member.account}</td>
                </tr>
                <tr>
                    <td>会员姓名</td>
                    <td>${member.name}</td>
                </tr>
                <tr>
                    <td>会员Email</td>
                    <td>${member.email}</td>
                </tr>
                <tr>
                    <td>会员手机号</td>
                    <td>${member.phone}</td>
                </tr>
                <tr>
                    <td>会员评价数：</td>
                    <td>${evaluationNum}</td>
                </tr>
                <tr>
                    <td>会员文章数：</td>
                    <td>${essayNum}</td>
                </tr>
                <tr>
                    <td>
                        <div style="margin:0 auto;width:200px;">
                            <button type="button" class="btn btn-success"
                                    onclick="location='${pageContext.request.contextPath }/adminMember?method=findById&id=${member.id}'">
                                修改
                            </button>
                        </div>
                    </td>
                    <td>
                        <button type="button" class="btn btn-danger"
                                onclick="location='${pageContext.request.contextPath }/adminMember'">取消
                        </button>
                    </td>
                </tr>
                </tbody>
            </table>

        </div>
    </div>
</div>

<jsp:include page="footer.jsp"/>

<script src="assets/javascripts/jquery.min.js"></script>
<script src="assets/javascripts/bootstrap.min.js"></script>
<script src="assets/javascripts/Chart.js"></script>
<script src="assets/javascripts/script.js"></script>
</body>
</html>